package cn.cloud.jianghai.userservice.service;

import cn.cloud.jianghai.orderapi.entity.OrderDto;
import cn.cloud.jianghai.userapi.dto.UserDto.UserDto;
import cn.cloud.jianghai.userservice.domain.User;
import cn.cloud.jianghai.userservice.query.UserQuery;
import cn.cloud.jianghai.userservice.vo.UserVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author jianghai
* @description 针对表【t_user】的数据库操作Service
* @createDate 2022-05-22 16:54:29
*/
public interface UserService extends IService<User> {

    /**
     * 查找用户列表
     * @param query 查询参数
     * @Date 2022/5/22 17:03
     * @Author Jiang.h
     * @return java.util.List<cn.cloud.jianghai.userservice.vo.UserVo>
     **/
    List<UserVo> findUserList(UserQuery query);

    /**
     *  新增
     * @param userDto 数据体
     * @Date 2022/5/22 17:38
     * @Author Jiang.h
     * @return java.lang.Boolean
     **/
    Boolean insert(UserDto userDto);

    List<OrderDto> testHystrix(Long id);
}
